package com.example.user.service.impl;

import com.example.user.service.UserService;
import com.example.user.service.repository.UserRepository;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import retrofit2.Response;


/**
 * 用户模块业务-实现类  by zqq on 2018/6/11.
 */

public class UserServiceImpl implements UserService {

    private UserRepository repository;

    public UserServiceImpl() {
        repository = new UserRepository();
    }

    @Override
    public Observable<Response<String>> login() {
        return repository.login();
//                .subscribeOn(Schedulers.io())
//                .observeOn(AndroidSchedulers.mainThread());
    }

}
